package com.buddy.india.buddy.party.man.go.money;

import android.app.Application;
import android.content.Context;
import android.webkit.WebView;

import androidx.annotation.NonNull;

import com.android.installreferrer.api.InstallReferrerClient;
import com.android.installreferrer.api.InstallReferrerStateListener;
import com.android.installreferrer.api.ReferrerDetails;
import com.getcapacitor.Bridge;
import com.getcapacitor.JSObject;
import com.getcapacitor.PluginCall;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.messaging.FirebaseMessaging;

import io.branch.referral.Branch;

public class MyApplication extends Application {

    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        initBranch();

    }
    private void initBranch() {
        // Branch logging for debugging
        Branch.enableLogging();
        Branch.getAutoInstance(this);
    }


    /**
     * 获取全局上下文*/
    public static Context getContext() {
        return context;
    }
}

